package com.epoint.webapp.util;

public class FileUtil {
	private String originalName;
	private String fileType;
	private String fileName;
	private String lowerCaseName;
	
	public FileUtil(String originalName) {
		super();
		this.originalName = originalName;
		this.fileType = originalName.substring(originalName.lastIndexOf(".")+1).toLowerCase();
		this.fileName = originalName.substring(0,originalName.lastIndexOf("."));
		this.lowerCaseName = fileName+"."+fileType;
	}

	public String getOriginalName() {
		return originalName;
	}

	public void setOriginalName(String originalName) {
		this.originalName = originalName;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getLowerCaseName() {
		return lowerCaseName;
	}

	public void setLowerCaseName(String lowerCaseName) {
		this.lowerCaseName = lowerCaseName;
	}

	
}
